package com.cn.jiyun.service.impl;



import com.cn.jiyun.EntertainmentFeign;
import com.cn.jiyun.entity.pojo.Entertainment;
import com.cn.jiyun.service.EntertainmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public class EntertainmentServiceImpl implements EntertainmentService {

    @Autowired
    private EntertainmentFeign entertainmentFeign;

    @Override
    public List<Entertainment> findPage() {
        return entertainmentFeign.findPage().getData();
    }

    @Override
    public Entertainment findById(Integer id) {
        return entertainmentFeign.findById(id).getData();
    }
}
